var mongoose = require('mongoose')

var Schema = mongoose.Schema

var powerListSchema = new Schema({
    id: {
        type:String
    },
    authName: {
        type: String,
        required: true
    },
    level: {
        type: String
    },
    pid: {
        type: Number,
        default: 0
    },
    path: {
        type: String
    }
})

module.exports = mongoose.model('powerList',powerListSchema)